package chixing.day05;

/**
 * 外卖菜品Dish类
 */
public class Dish {
    private Shop shop;

    private int dishId;//菜品id
    private String dishName;//菜品名称
    private String dishType;//菜品类型
    public Dish(){}

    public Dish(Shop shop, int dishId, String dishName, String dishType) {
        this.shop = shop;
        this.dishId = dishId;
        this.dishName = dishName;
        this.dishType = dishType;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public int getDishId() {
        return dishId;
    }

    public void setDishId(int dishId) {
        this.dishId = dishId;
    }

    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }

    public String getDishType() {
        return dishType;
    }

    public void setDishType(String dishType) {
        this.dishType = dishType;
    }

    @Override
    public String toString() {
        return "Dish{" +
                "shop=" + shop +
                "菜品ID:" + dishId + ";" +
                "菜品名称:" + dishName + ";" +
                "菜品类型:" + dishType + ";" +
                '}';
    }
}
